package com.lyb.springcloud.service.impl;

import com.lyb.springcloud.dao.PaymentDao;
import com.lyb.springcloud.entities.Payment;
import org.springframework.stereotype.Service;
import com.lyb.springcloud.service.PaymentService;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment){
        return paymentDao.create(payment);
    };

    public Payment getPaymentById(long id){
        return paymentDao.getPaymentById(id);
    };
}
